package com.gof.example.mybatistest;

import org.junit.Test;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/3 09:25.
 * haiming.fei@tongdun.cn
 */
public class App {

    private void self(String str) {
        MyPropTokenizer myPropTokenizer = new MyPropTokenizer(str);

        if (myPropTokenizer.hasNext()) {
            self(myPropTokenizer.getChildren());
        }
        System.out.println(myPropTokenizer);
    }

    //<logger name="cn.fraudmetrix.octopus.service.dal.dao.LoginFactorDao" level="debug" additivity="true"/>
    @Test
    public void testToken() throws Exception {
        self("person[0].birthday.date");
    }
}
